package cn.theten52.demo.patterns.design.structure.adapter.update1;

import cn.theten52.demo.patterns.design.structure.adapter.Adaptee;
import cn.theten52.demo.patterns.design.structure.adapter.Target;

/**
 * 对象适配器
 *
 * @author wangjin
 * @date 2020/12/31
 */
public class ObjectAdapter implements Target {

    private Adaptee adaptee;

    public ObjectAdapter(Adaptee adaptee) {
        this.adaptee = adaptee;
    }

    /**
     * 适配接口
     */
    @Override
    public void request() {
        adaptee.someRequest();
    }
}
